/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package HangHoa;

import java.util.Vector;

/**
 *
 * @author Tuan
 */
public class Ao extends SanPham {
    private String sizeAo;
    private String kieuCA;//kieu co ao
    private String kieuTA;//Kieu tay ao
    private final String donVi="Cái";// chiec

//Constructor
    
    public Ao() {
        super.setDonVi(donVi);
    }

    public Ao(String sizeAo, String kieuCA, String kieuTA, String maHH, String tenHH, String nhaSX, double giaNhap, double giaBan, String chatLieu) {
        super(maHH, tenHH, nhaSX, giaNhap, giaBan, chatLieu);
        this.sizeAo = sizeAo;
        this.kieuCA = kieuCA;
        this.kieuTA = kieuTA;
        this.setGhiChu();
    }
    
     public Ao(String str[]){
        super(str);
        this.sizeAo = str[8];
        this.kieuCA =str[9];
        this.kieuTA= str[10];
        this.setGhiChu();
    }
//Getter
    public String getSizeAo() {
        return sizeAo;
    }

    public String getKieuCA() {
        return kieuCA;
    }

    public String getKieuTA() {
        return kieuTA;
    }

    public String getDonVi() {
        return donVi;
    }
    
//Setter
    public void setSizeAo(String sizeAo) {
        this.sizeAo = sizeAo;
    }

    public void setKieuCA(String kieuCA) {
        this.kieuCA = kieuCA;
    }

    public void setKieuTA(String kieuTA) {
        this.kieuTA = kieuTA;
    }
    public void setGhiChu(){
         super.setGhiChu("Size áo:"+this.getSizeAo()+", Kiểu cổ áo:"+this.getKieuCA()+"Kiểu tay áo:"+this.getKieuTA());
    }
    
}
